<%
/**
 * last wizard page / tab
 *
 * @author	Jeroen Wesbeek <work@osx.eu>
 * @package AjaxFlow
 */
%>
<af:page>

<g:if test="${interview}">
	<div class="col-sm-3 col-md-offset-9">
		<h3>Intervista : <exdutility:number_interview value="${interview?.id }"/></h3>
	</div>
</g:if>

<div class="row">
	<div class="col-lg-10 col-md-offset-1" style="background-color:#F7F7F7; padding-left:0px; padding-right:0px">
		<div class="portlet portlet-default">	
			<div class="portlet-body">
				<ul id="myTab" class="nav nav-tabs" style="background-color:#FFFFFF">
					<li class="active">
						<a data-toggle="tab" href="#home"><b>Scheda Riepilogativa</b></a>
					</li>
				</ul>


<g:if test="${(customer?.personaGiuridica?.pgCf || customer?.personaGiuridica?.pgPiva)  && customer?.personaGiuridica?.pgName}">
	<h5>&nbsp&nbsp&nbsp Persona Giuridica</h5>
	<div class="row">
		<div class="col-sm-2 col-md-offset-1">
			<h7><strong>Denominazione Sociale:</strong>	</div>	<div class="col-sm-3">
			${customer?.personaGiuridica?.pgName}</h7>
		</div>
		<div class="col-sm-2">
			<h7><strong>Cod. Fisc.:</strong>	</div>	<div class="col-sm-3">
			${customer?.personaGiuridica?.pgCf}</h7>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-2 col-md-offset-1">
			<h7><strong>c. Fisc. / P. Iva:</strong>	</div>	<div class="col-sm-3">
			${ustomer?.personaGiuridica?.pgPiva}</h7>
		</div>
	</div>
	<h5>&nbsp&nbsp&nbsp Domicilio Fiscale</h5>
	<div class="row">
		<div class="col-sm-2 col-md-offset-1">
			<h7><strong>Provincia:</strong>	</div>	<div class="col-sm-3">
			<g:if test="${customer?.personaGiuridica?.pgResidence?.province?.nome}">${customer?.personaGiuridica?.pgResidence?.province.nome}</g:if>
			<g:else>.....</g:else></h7>
		</div>
		<div class="col-sm-2">
			<h7><strong>Comune:</strong>	</div>	<div class="col-sm-3">
			<g:if test="${customer?.personaGiuridica?.pgResidence?.municipality?.nome}">${customer?.personaGiuridica?.pgResidence?.municipality.nome}</g:if>
			<g:else>.....</g:else></h7>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-2 col-md-offset-1">
			<h7><strong>Cap:</strong>	</div>	<div class="col-sm-3">
			<g:if test="${customer?.personaGiuridica?.pgResidence?.cap}">${customer?.personaGiuridica?.pgResidence?.cap}</g:if>
			<g:else>.....</g:else></h7>
		</div>
		<div class="col-sm-2">
			<h7><strong>Indirizzo:</strong>	</div>	<div class="col-sm-3">
			<g:if test="${customer?.personaGiuridica?.pgResidence?.address}">${customer?.personaGiuridica?.pgResidence?.address}</g:if>
			<g:else>.....</g:else></h7>
		</div>
	</div>
	<h5>&nbsp&nbsp&nbsp Contatti</h5>
	<div class="row">
		<div class="col-sm-2 col-md-offset-1">
			<h7><strong>Telefono:</strong>	</div>	<div class="col-sm-3">
			<g:if test="${customer?.personaGiuridica?.pgPhone}">${customer?.personaGiuridica?.pgPhone}</g:if>
			<g:else>.....</g:else></h7>
		</div>
		<div class="col-sm-2">
			<h7><strong>Cellulare:</strong>	</div>	<div class="col-sm-3">
			<g:if test="${customer?.personaGiuridica?.pgMobile}">${customer?.personaGiuridica?.pgMobile}</g:if>
			<g:else>.....</g:else></h7>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-2 col-md-offset-1">
			<h7><strong>Email:</strong>	</div>	<div class="col-sm-3">
			<g:if test="${customer?.personaGiuridica?.pgEmail}">${customer?.personaGiuridica?.pgEmail}</g:if>
			<g:else>.....</g:else></h7>
		</div>
	</div>
</br></br>
</g:if>
					
<h5>&nbsp&nbsp&nbsp Anagrafica</h5>
<div class="row">
	<div class="col-sm-2 col-md-offset-1">
		<h7><strong>Nome:</strong>	</div>	<div class="col-sm-3">
		${customer.name}</h7>
	</div>
	<div class="col-sm-2">
		<h7><strong>Cognome:</strong>	</div>	<div class="col-sm-3">
		${customer.surname}</h7>
	</div>
</div>
<div class="row">
	<div class="col-sm-2 col-md-offset-1">
		<h7><strong>c. Fisc. / P. Iva:</strong>	</div>	<div class="col-sm-3">
		${customer.cf_piva}</h7>
	</div>
	<div class="col-sm-2">
		<h7><strong>Data Nascita:</strong>	</div>	<div class="col-sm-3">
		<g:if test="${customer?.born}">${formatDate(format:'dd/MM/yyyy',date:customer.born)}</g:if>
		<g:else>.....</g:else></h7>
	</div>
</div>
<div class="row">
	<div class="col-sm-2 col-md-offset-1">
		<h7><strong>Eta:</strong>	</div>	<div class="col-sm-3">
		<g:if test="${customer?.age}">${customer.age}</g:if>
		<g:else>.....</g:else></h7>
	</div>
	<div class="col-sm-2">
		<h7><strong>Sesso:</strong>	</div>	<div class="col-sm-3">
		<g:if test="${customer?.sex}">
			<g:if test="${customer.sex=='D'}">Donna</g:if><g:else>Uomo</g:else>
		</g:if>
		<g:else>.....</g:else></h7>
	</div>
</div>
<div class="row">
	<div class="col-sm-2 col-md-offset-1">
		<h7><strong>Provincia di Nascita:</strong>	</div>	<div class="col-sm-3">
		<g:if test="${customer?.bornProvince?.nome}">${customer.bornProvince.nome}</g:if>
		<g:else>.....</g:else></h7>
	</div>
	<div class="col-sm-2">
		<h7><strong>Comune di Nascita:</strong>	</div>	<div class="col-sm-3">
		<g:if test="${customer?.bornMunicipality?.nome}">${customer.bornMunicipality.nome}</g:if>
		<g:else>.....</g:else></h7>
	</div>
</div>
	
<h5>&nbsp&nbsp&nbsp Domicilio</h5>
<div class="row">
	<div class="col-sm-2 col-md-offset-1">
		<h7><strong>Provincia:</strong>	</div>	<div class="col-sm-3">
		<g:if test="${customer?.abode?.province?.nome}">${customer.abode.province.nome}</g:if>
		<g:else>.....</g:else></h7>
	</div>
	<div class="col-sm-2">
		<h7><strong>Comune:</strong>	</div>	<div class="col-sm-3">
		<g:if test="${customer?.abode?.municipality?.nome}">${customer.abode.municipality.nome}</g:if>
		<g:else>.....</g:else></h7>
	</div>
</div>
<div class="row">
	<div class="col-sm-2 col-md-offset-1">
		<h7><strong>Cap:</strong>	</div>	<div class="col-sm-3">
		<g:if test="${customer.abode?.cap}">${customer.abode.cap}</g:if>
		<g:else>.....</g:else></h7>
	</div>
	<div class="col-sm-2">
		<h7><strong>Indirizzo:</strong>	</div>	<div class="col-sm-3">
		<g:if test="${customer?.abode?.address}">${customer.abode.address}</g:if>
		<g:else>.....</g:else></h7>
	</div>
</div>

<h5>&nbsp&nbsp&nbsp Residenza</h5>
	<g:if test="${customer?.residence }">
		<div class="row">
			<div class="col-sm-2 col-md-offset-1">
				<h7><strong>Provincia:</strong>	</div>	<div class="col-sm-3">
				<g:if test="${customer?.residence?.province?.nome}">${customer.residence.province.nome}</g:if>
				<g:else>.....</g:else></h7>
			</div>
			<div class="col-sm-2">
				<h7><strong>Comune:</strong>	</div>	<div class="col-sm-3">
				<g:if test="${customer?.residence?.municipality?.nome}">${customer.residence.municipality.nome}</g:if>
				<g:else>.....</g:else></h7>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-2 col-md-offset-1">
				<h7><strong>Cap:</strong>	</div>	<div class="col-sm-3">
				<g:if test="${customer.residence?.cap}">${customer.residence.cap}</g:if>
				<g:else>.....</g:else></h7>
			</div>
			<div class="col-sm-2">
				<h7><strong>Indirizzo:</strong>	</div>	<div class="col-sm-3">
				<g:if test="${customer?.residence?.address}">${customer.residence.address}</g:if>
				<g:else>.....</g:else></h7>
			</div>
		</div>
		</g:if>
		<g:else>
			<div class="row"><div class="col-sm-4 col-md-offset-1">Domicilio uguale a Residenza</div></div>
		</g:else>
	</div>
	
<h5>&nbsp&nbsp&nbsp Contatti</h5>
<div class="row">
	<div class="col-sm-2 col-md-offset-1">
		<h7><strong>Telefono:</strong>	</div>	<div class="col-sm-3">
		<g:if test="${customer.phone}">${customer.phone}</g:if>
		<g:else>.....</g:else></h7>
	</div>
	<div class="col-sm-2">
		<h7><strong>Cellulare:</strong>	</div>	<div class="col-sm-3">
		<g:if test="${customer?.mobile}">${customer.mobile}</g:if>
		<g:else>.....</g:else></h7>
	</div>
</div>
<div class="row">
	<div class="col-sm-2 col-md-offset-1">
		<h7><strong>Email:</strong>	</div>	<div class="col-sm-3">
		<g:if test="${customer.email}">${customer.email}</g:if>
		<g:else>.....</g:else></h7>
	</div>
</div>
</br></br>

<h5>&nbsp&nbsp&nbsp Attivita' Lavorativa</h5>
	<g:if test="${customer?.job}">
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Lavoro:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.jobType?.value}">${customer.job.jobType.value}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>	
	    <g:if test="${customer?.job?.jobType?.id < 4 && customer?.job?.jobType?.id > -1}">	
	    	</br>													
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Reddito Netto Annuo:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.redditoNettoAnnuo}">${customer.job.redditoNettoAnnuo}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Mensilita:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.mensilita}">${customer.job.mensilita}</g:if>
					<g:else>.....</g:else></h7>
				</div>				
			</div>
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Tipologia di Impiego:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.impiegoType}">${customer.job.impiegoType}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Tipo di Contratto:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.contractType}">${customer.job.contractType}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
		</g:if>
		<g:else><g:if test="${customer?.job?.jobType?.id > 4}">	
			</br>
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Attivo in Bilancio ultimo Anno:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.attivoLastYear}">${customer.job.attivoLastYear}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Ricavi Lordi Ultimo Anno:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.ricaviLordiLastYear}">${customer.job.ricaviLordiLastYear}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Debiti Ultimo Anno:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.debitiLastYear}">${customer.job.debitiLastYear}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
			</br>
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Attivo in Bilancio penultimo Anno:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.attivoSecondLastYear}">${customer.job.attivoSecondLastYear}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Ricavi Lordi penultimo Anno:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.ricaviLordiSecondLastYear}">${customer.job.ricaviLordiSecondLastYear}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Debiti penultimo Anno:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.debitiSecondLastYear}">${customer.job.debitiSecondLastYear}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
			</br>
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Attivo in Bilancio terzultimo Anno:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.attivoThirdLastYear}">${customer.job.attivoThirdLastYear}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Ricavi Lordi terzultimo Anno:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.ricaviLordiThirdLastYear}">${customer.job.ricaviLordiThirdLastYear}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Debiti terzultimo Anno:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.debitiThirdLastYear}">${customer.job.debitiThirdLastYear}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div> 
			</br>
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Descrizione Attivita:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.job?.activityType}">${customer.job.activityType}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
		</g:if></g:else>
	</g:if>
	<g:else>
		<div class="row"><div class="col-sm-2 col-md-offset-1">.....</div></div>
	</g:else>
	
</br>	
<h5>&nbsp&nbsp&nbsp Rendite, deposito, titolo, etc.</h5>
	<g:if test="${customer?.renditaTitDep}">
		<g:each var="ren" in="${customer.renditaTitDep}">
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Tipologia:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${ren?.tipologyRendita}">${ren.tipologyRendita}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Totale Euro Annuo:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${ren?.totEuroRendita}">${ren.totEuroRendita}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
			</br>		
		</g:each>
	</g:if>
	<g:else>
		<div class="row"><div class="col-sm-2 col-md-offset-1">.....</div></div>
	</g:else>
</br></br>

<h5>&nbsp&nbsp&nbsp Famiglia</h5>
	<g:if test="${customer?.families}">
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Nucleo Familiare:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${customer?.familiesNumber}">${customer.familiesNumber}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>		
		<g:each var="fam" in="${customer.families}">
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Parentela:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${fam?.type?.value}">${fam.type.value}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Impiego:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${fam?.job}">${fam.job}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>		
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Reddito Annuo Netto:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${fam?.ran}">${fam.ran}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
			</br>		
		</g:each>
	</g:if>
	<g:else>
		<div class="row"><div class="col-sm-2 col-md-offset-1">.....</div></div>
	</g:else>
</br></br>

<h5>&nbsp&nbsp&nbsp Immobili di proprieta</h5>
	<g:if test="${customer?.immobile}">
		<g:each var="imm" in="${customer.immobile}">
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Descrizone:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${imm?.immobileType?.immobileType}">${imm.immobileType.immobileType}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Metri Quadri:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${imm?.metriQuadri}">${imm.metriQuadri}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Provincia:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${imm?.province?.nome}">${imm.province.nome}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Comune:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${imm?.municipality?.nome}">${imm.municipality.nome}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>		
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Cap:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${imm?.cap}">${imm.cap}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Indirizzo:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${imm?.address}">${imm.address}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>	
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Rata Mensile Mutuo:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${imm?.rataMensileMutuo}">${imm.rataMensileMutuo}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Valore Mutuo Residuo:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${imm?.valoreMutuo}">${imm.valoreMutuo}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>		
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Stima Mercato Attuale:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${imm?.stimaMercatoAttuale}">${imm.stimaMercatoAttuale}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
			</br>		
		</g:each>
	</g:if>
	<g:else>
		<div class="row"><div class="col-sm-2 col-md-offset-1">.....</div></div>
	</g:else>
	
<h5>&nbsp&nbsp&nbsp Altri Beni di Prioprieta</h5>
	<g:if test="${customer?.altroBene}">
		<g:each var="alt" in="${customer.altroBene}">
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Tipologia Bene:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${alt?.tipologyBene}">${alt.tipologyBene}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Valore/Stima Mercato:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${alt?.valoreStimaMerc}">${alt.valoreStimaMerc}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>		
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Note:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${alt?.note}">${alt.note}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
			</br>	
		</g:each>
	</g:if>
	<g:else>
		<div class="row"><div class="col-sm-2 col-md-offset-1">.....</div></div>
	</g:else>
	</br></br>
	
<h5>&nbsp&nbsp&nbsp Debito</h5>
	<g:if test="${customer?.debito}">
		<g:each var="deb" in="${customer.debito}">
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Tipologia Debito:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${deb?.type?.type}">${deb.type.type}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Creditori:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${deb?.credit}">${deb.credit}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>		
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Capitale Residuo:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${deb?.capitalRes}">${deb.capitalRes}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Importo Rata:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${deb?.rate}">${deb.rate}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>		
			<div class="row">
				<div class="col-sm-2 col-md-offset-1">
					<h7><strong>Cointestatario/Garante:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${deb?.partner}">${deb.partner}</g:if>
					<g:else>.....</g:else></h7>
				</div>
				<div class="col-sm-2">
					<h7><strong>Sato rapporto e Note:</strong>	</div>	<div class="col-sm-3">
					<g:if test="${deb?.notes}">${deb.notes}</g:if>
					<g:else>.....</g:else></h7>
				</div>
			</div>
			</br>		
		</g:each>
	</g:if>
	<g:else>
		<div class="row"><div class="col-sm-2 col-md-offset-1">.....</div></div>
	</g:else>
	
</br></br>	
<h5>&nbsp&nbsp&nbsp Approfondimenti su Eventuali Cessioni / Deleghe o CPI</h5>
	<div class="row">
		<div class="col-sm-7 col-md-offset-1">
			<h7><strong>Prima cessione del quinto o delega di pagamento:</strong>	</div>	<div class="col-sm-3">
			<g:if test="${interview?.acdCPI?.cessioniDeleghe!=null}">
				<g:if test="${interview?.acdCPI?.cessioniDeleghe}">SI</g:if>
				<g:else>NO</g:else>
			</g:if>
			<g:else>.....</g:else></h7>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-7 col-md-offset-1">
			<h7><strong>Sul mutuo e' stata stipulata una polizza di copertura assicurativa (CPI):</strong>	</div>	<div class="col-sm-3">
			<g:if test="${interview?.acdCPI?.cPI!=null}">
				<g:if test="${interview?.acdCPI?.cPI}">SI</g:if>
				<g:else>NO</g:else>
			</g:if>
			<g:else>.....</g:else></h7>
		</div>
	</div>

</br></br>	
<h5>&nbsp&nbsp&nbsp Informazioni Generali sull'Utente</h5>
	<div class="row">
		<div class="col-sm-7 col-md-offset-1">
			<h7><strong>Cosa vorrebbe ottenere il cliente dalla procedura:</strong>	</div>	<div class="col-sm-3">
			<g:if test="${interview?.motiveInterview!=null}">
				${interview?.motiveInterview.motiveInterviewType.motiveInterviewType}
			</g:if>
			<g:else>.....</g:else></h7>
		</div>
	</div>
	<g:if test="${interview?.motiveInterview?.altroSpec!=null && interview?.motiveInterview?.altroSpec!=''}">
		<div class="row">
			<div class="col-sm-7 col-md-offset-1">
				<h7><strong>Altro che dichiara l'utente per la risposta:</strong>	</div>	<div class="col-sm-3">
					${interview.motiveInterview.altroSpec}
			</div>
		</div>
	</g:if>
	
</br>	
<h5>&nbsp&nbsp&nbsp Note di Carattere Generale</h5>
	<div class="row">
		<div class="col-sm-8 col-md-offset-1">
			<h7>
			<g:if test="${interview?.note}">${interview?.note}</g:if>
			<g:else>.....</g:else></h7>
		</div>
	</div>
	</br></br>


			</div>
		</div>
	</div>
</div>

</br></br>			
<div style="border-top: 2px solid #006DBA; padding-top: 2px;"></div>
<div class="row">
	
	<div class="col col-md-2 col-md-offset-2">
		
<%--		<g:jasperReport--%>
<%--          jasper="templateInterv"--%>
<%--          format="PDF"--%>
<%--          action="createInterviewPdf"--%>
<%--          controller="interview"--%>
<%--          name="Generda Pdf"--%>
<%--          delimiter=" "--%>
<%--          --%>
<%--          >--%>
<%--    		<input type="hidden" name="interviewId" value="<exdutility:number_interview value='${interview?.id }'/>"/>--%>
<%--    		<input type="hidden" name="interId" value="${interview?.id }"/>--%>
<%--  		</g:jasperReport>--%>


		<g:jasperForm 
		 controller="interview"
    		action="createInterviewPdf"
    		id="1498"
    		jasper="templateInterv" >
   		 	<input type="hidden" name="interviewId" value="<exdutility:number_interview value='${interview?.id }'/>"/>
    		<input type="hidden" name="interId" value="${interview?.id }"/>

<%--    	<g:jasperButton format="PDF" jasper="templateInterv" text="PDF" class="btn btn-md btn-primary"/>--%>
		<a href="#" class="btn btn-primary" style="padding:4px 18px" title="PDF" onclick="return submit_templateInterv(this)"><img border="0" style="height:21px" alt="PDF" src="/static/plugins/jasper-1.11.0/images/icons/PDF.gif">GENERA PDF&nbsp;&nbsp;</a>
    	
    </g:jasperForm>
		
	</div>
	
	<div  class="col-sm-8">
		<a type="button" name="previous" href="${createLink(action:'edit',id:interview?.id)}" class="btn btn-md btn-primary">« Precedente</a> 		
		&nbsp;&nbsp;
		
		
		<input type="button" name=Sovradd" value="Calcola Sovraindebitamento" class="btn btn-md btn-primary">
		&nbsp;&nbsp;
		<input type="button" name="interviewList" value="Lista Interviste" onClick="location.href='${createLink(controller:'interview',action:'list') }'" class="btn btn-md btn-primary">
		

	</div>
	
</div>

</af:page>
